// 用户相关的请求模块
import request from '../utils/request'

// 用户登录 246810
export const login = (data) => {
  return request({
    method: 'post',
    url: '/app/v1_0/authorizations',
    data
  })
}
// 发送验证码
export const sendsms = (mobile) => {
  return request({
    method: 'get',
    url: `/app/v1_0/sms/codes/${mobile}`
  })
}

// 用户导航栏列表
export const userlist = () => {
  return request({
    method: 'get',
    url: '/app/v1_0/user/channels'
  })
}

// 用户文章列表
export const getarticle = (params) => {
  return request({
    method: 'get',
    url: '/app/v1_1/articles',
    params
  })
}
